package game.breeze.resource.manager;

import java.io.File;

import org.apache.commons.lang.SystemUtils;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.InitializingBean;

public abstract class ResourceManager implements InitializingBean {
	private static final Logger logger = Logger.getLogger(ResourceManager.class);
	// protected String resource;
	protected File resource;

	public ResourceManager(String resource) {
		this.resource = new File(SystemUtils.getUserDir() + SystemUtils.FILE_SEPARATOR + resource);
		if (this.resource == null || !this.resource.exists()) {
			logger.error("不能找到资源配置:" + resource);
		}
	}
}
